<template>
  <view class="m-error" @click="handleClipboardData">
    <x-empty src="/assets/images/no-search.png" :content="content" />
  </view>
</template>

<script>
import config from '@/config';
import XEmpty from '@/components/x-empty';

export default {
  name: 'Error',
  components: {
    XEmpty
  },
  props: {},
  data() {
    return {
      content: `点击复制${config.appName}小程序，前往手机微信搜索使用`
    };
  },
  methods: {
    handleClipboardData() {
      this.$tools.setClipboardData(config.appName);
    }
  }
};
</script>

<style lang="scss">
.m-error{
  height: 100vh; background-color: #fff;
  .x-empty{
    ._pic{ width: 300px !important;}
    ._content{ width: 500px;}
  }
}
</style>
